feat: add support for UUID and PG_UUID types across Spanner migration utilities. - #3905
Conversation
2481637 to
6b26c9e
Compare
6b26c9e to
f4ad6ae
Compare
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #3905 +/- ##
============================================
+ Coverage 55.59% 55.69% +0.10%
- Complexity 7052 7196 +144
============================================
Files 1103 1117 +14
Lines 67681 68340 +659
Branches 7603 7702 +99
============================================
+ Hits 37625 38063 +438
- Misses 27636 27810 +174
- Partials 2420 2467 +47
🚀 New features to boost your workflow:
|
b2bd219 to
4566208
Compare
7924f38 to
368d1c1
Compare
368d1c1 to
6039a06
Compare
Summary of ChangesHello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request introduces first-class support for UUID and PG_UUID data types within the Spanner migration framework. By updating the core type system, mapping logic, and conversion utilities, the changes ensure that UUID fields are correctly identified, mapped, and processed during data migration tasks. These updates improve the robustness of the migration pipeline when dealing with UUID-based schemas. Highlights
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize the Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counterproductive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request adds support for the UUID and PG_UUID data types across several Spanner-related templates and common utilities, including schema parsing, Avro mapping, and change event conversion. A critical compilation issue was identified in AssignShardIdFn.java, where value.getUuid() is called on a Spanner Value object. Since the Spanner Java SDK does not have a getUuid() method, this must be updated to use value.getString() instead.
086a9e2 to
4fd1a5f
Compare
4fd1a5f to
5264417
Compare
No description provided.